package cn.edu.gcu.giftems.pojos;

/**
 * TODO: Description here...
 *
 * @author ZhengHQ
 * @create 2018-10-13
 * @see
 */
public class OrderItem {

    private int id;
    private Order order;
    private Gift gift;
    private int quantity;
    private Double purchasePrice;
    private String giftName;
    private int orderId;
    private int giftId;
    private long sumQuanitity;
    private String typeName;

    public OrderItem() {
    }

    public OrderItem(Order order, Gift gift, int quantity, Double purchasePrice) {
        this.order = order;
        this.gift = gift;
        this.quantity = quantity;
        this.purchasePrice = purchasePrice;
    }

    public OrderItem(int id, int orderId, int giftId, String giftName, int quantity, Double purchasePrice) {
        this.id = id;
        this.orderId = orderId;
        this.giftId = giftId;
        this.giftName = giftName;
        this.quantity = quantity;
        this.purchasePrice = purchasePrice;
    }

    public OrderItem(String typeName, String giftName, long sumQuanitity) {
        this.typeName = typeName;
        this.giftName = giftName;
        this.sumQuanitity = sumQuanitity;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public Gift getGift() {
        return gift;
    }

    public void setGift(Gift gift) {
        this.gift = gift;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public Double getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(Double purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public String getGiftName() {
        return giftName;
    }

    public void setGiftName(String giftName) {
        this.giftName = giftName;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getGiftId() {
        return giftId;
    }

    public void setGiftId(int giftId) {
        this.giftId = giftId;
    }

    public long getSumQuanitity() {
        return sumQuanitity;
    }

    public void setSumQuanitity(long sumQuanitity) {
        this.sumQuanitity = sumQuanitity;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
}
